import requests
import subprocess
def start():
    params = {
        "pg": {},
        "pgsz": "15",
        "total": "450"
    }
    for i in range(0,2):
        response(params)

def response(params):
    res = requests.get(url, headers=headers, params=params)
    print(res)
    # 用js解密
    # t = '5588a9e126c91a28cc2f6813e379336977159750a8fdd0f1f27d1527b2df4113b2babb7763f227509f0a6cc3b0c358fcc9c3f1b50f42db579e8e40cccfae60ccd383fd9a160b1b0ebe59f91baefe01cf8814f550e2c6f13928662892e3633fd1ab3d9986b7852cb5608a97a156a0b4466b4491b7842dcc7c8d36c06654a3c787c845ceff29600902ae23d42bed2c8e3738fb631ee8785f25376f844ad749d126856329d8823ac11edddcad28903fcedc84fb295fbc2fb64b5d1ec43adec4e54c883cb460aab8676f6d03ae2e71ce6a057ef62898147259391fa272ab238fe5ade15e54ae8122e05ae30505566e42a91aae0f832372d29acb2e377c69a11af5e0d9af8a032c5acf778e1dea17fb6428e3b0ec4302744e433ad02c02c25212da47c23c51ce12f4a20fde858f2d4e8ace36f1d00e8a6a7f1d68c9e0af64ef27b65492f68ca18e77bd520f4d5eeacd37acf48b9762201a4979a1443674291d272ca4fa691668df6404fc3a7ade1325b08587034f866ab57d0d9fe4bcfb143ee7cd945b67d9dc242a966a0ae1c770fb31e86c6f2aebb8fec9ad56ebeefb63d650ab82960ebdf46f9a3cff74459d9ffe195fd1908f95f2bc4c742464a76afadff5709816b7399b627d1ff354563c71331420c4b36859538cf07e6eb49a75d94e1f064f4df7be1f712cc1d2d5b66c355f3920165de1b0b693cb8be0b18160af96426869b6a81abd17eb2a248eeb7fb6f98d8fb1445499f7685d282bd90114687061f8b29ce85ddbc30b1c7df72729b18e491b3755de2533599bffc6e4e7816b08d5b8605fb26dd9f0a6e9bf609d929b6e653b4067096a5bfe5de31cb3712a061d41e5a519386e74c0137c650b97bfd5b54e503cf775bd9ee8b21c6a56ee5b01004d71e00ba4ebde6dba98789376a029d46999886585a87a93f7c41654c674e430ccc783f9ddb5a0547fb2d09fa7f8d33d5825b039cacdeea564c22ca28a0b272df13f7fd58e929d5ae5f4c87ee99acf2b7555b24ce5fef6921841fbe0eb9ecc839fc9bd8d8c2b52db931559307164368bd5c537dacee9312a1d657c5fc2e297a908f4782768740d9ce8b04e848fb522799d1b126915326d34ff818d9c5aea4b0452dfbd8d578fff564be6e135b0887dabda035caff6331b545c6ab29d7cef93210eed3144e24fe9e3a864d27107ed896b07ef0fefe2c5b4eb0ebe9acf64ef6e3c5be7409c6791f787b78a2bc58e45ca5a3d668d936ab8fd7dda972be4154ab586dbdc15f650522d1d68107160dc821c68d354e793ff8d3b3111706da393ff303e25d0d128d3181573d2530d0f2b66c34b04e28ef7437c6b81e9dc880d712d708880737474172e313ac593763ec31935c937a47a896c0c4ec2aa51af227777ddc1da0b438e3e6dee7bdab79f3d4ea6bc22a49421d4948e25994779b3f3013e7cfcabcf5846fe1910aae54244b4beacb026861fef6006a1fb93adacb950dc4550645c4e5e8203968cad4aa6d739d7f4d25f93fb1680baf6228f467f86035b1db69b7649f7397623975638d3d06f94acc312f745b1f0bfa4dc6e6ddc37811d58d65af18dc98fa88f074d1235bbcca38c0266e73a2a3d5beb30b767e43e0e2420bfe236af3868400c3b3c52ecbbf263b2ec6c00f817ace806ebd1befe2137799d5fbfdf5fef2aa8f4e6199f24ec0a332261efd39ea3e12c7a457f6e8232fc8b701233e36bd66133acba69e0db5076c297feb20031cb3566f9b91a3e2fea09e99b7bbd4808d87d7cda104cda1351074971a133f77bb80fdc02e6e29fb62200c7f713a63de78e6b72d2912c8917fb7532f415f838f85808aaceaa1469bf173c495a5a598d28dfe45d32cb3a3ba2550e1570c912e9b39a05e7ec0c4532a922c4acd3141dc6906af282d6363c106669746c081131d89d18af5c70c6977fd987e0dac7b1ec973270259893baf25aaa8b8a78866544ff5449fa3de34de0282ca3d4d5ff15832820d09d566f5e9cb2c882c31610887c8b94077a911d96222cebbe7f0969f0ac0c348012640872821c0192fcbbdbfc3437058ff912bc64bb25f997fd8c0523e83ff7e44157caaaf72a0d9e86f51ef8193ed32b844ee37696e7261be4a4705e603f97a5e0c9cc767993d8988f52069437291a4116e9a40f44266497ab88e6ec8f0acb133491b465faaf2fced18f0da85ca7973ab0c8e9b6fae25ea86916f54d6255cce120577230995344aa3a0303b291e95c7e9b9591b3b4198d285abb7c758a9ed1c41d1e259f4f10cbd9439eb6f4b3e83e96257751ec79550cf472771d1bbb5925c2f2abaf5d8083c4dab9b2edde6ea7acb2ce8bf655be446a08acd6c59b4577dbb03075cba798c9d17387810249d98646968a3ddf55bf9a1b23851b2c9d0b6945fb115b7e41327154a437db861baf652e5cd34919ca9ad97d6b16664b37bb0ff8523fd15bcf0166f0db7dec6b0c60e646d85fe15630432687000c2f39bc1e335c7e45f4b9c1f95e331a03e639490e585e2d7eadf1609d0c9aa0ce6de66a395bc05208c0ebc2afa2a4542c7815ee189c5fc6a164ea6c2db7af181e2b718af24f3f43965684af739ddf6b4a5c432aa3fbbfabda230fa46e0949ed311c65d4b33b61e25956884c11c0b24da77a9e2b0d52e9de9b8baabece9c6fce81491f946d7cf49027c5e2c500fa49b1b741fd7bd989acf9ff658e7f67d57a87e1105a634eee6958510000aff3327a5f148e945054b6ce2f656a84ae4955a27bd111227a64486ee0e6eb7bced0bbe5e6ff682dc59a934c123abd063a671be2cf9f31932c250d2f25a2c944fb3eca82664fca19714efad76e0876f518518d9019c6d41d05c637e84a9409d01b696e1a9f32071c71a5d89f0e328a1784fca8458640f5b58d51d35b6078875b67dddae894f69d7efbac8085c31303baafd13728f6cce5a3bc3a0c2927914228a2f2f6625d81db0e3c540bbe9ce44e2d928e3f0f8b7accbdb2d8b219372fa049d32e04682cd4fcada5f479c824af2613e1bdf3e2e116d58b2668496ed75fe80588025ac53c1a6bf1fcec7d6276cadb3d4582ba436c4a44cb3ba7a91ef86a4217621d6a6c72ecbd0bfed0285d17cb5797834f9326c91f1c0a8da1dd3c241ac39ea6cbfb5661bb8ee58fe1fe6479ce0767b0bee06777278913cae5439ba5eec3705afe19e6ee1df3b7952d30f86c07f65338f7a2f67b36515cda2db0513d3957d0b842d1868e22f3e30bc2eb22a63a1c01474a69bab0dc80e7116f2427e9f5a9dcae4f078e94c11b282c97c95ac4950619409a768870c2c8bcdb123ee1fb6a8e6b00311d41f54b1a06a32213fc449524ee5a4a3c8abbe89af9f0d6dbfc7c436a1ce23210c33938298e7c424706c5371f63c59b0f8631fb563684d92af1585a0230c5d77af2e17bdee7af08144b206f46060914eb2018917e4bf6222296bb3bb79cb6e2b7f50989af5706426ff752caec094cb6986723afe6a06d48808db16ec4a1c1aabff570dd9efc29a5545648047d98564f016de4f7cb02d4f148d20ea9c134173e554036aa2e6b3adc00d007fb112dbaf3dd1b8f328bfec936b162cdff21cebddf8a0e620939a3c336c7c3dcf04749deeca970610d7365b7e8da488f936ede527c9e59b0cd4ab44fe99ab68e384cd084358154fd0fc8d93df10f3de70e613d9132f727a97f403374b4b9892ddc2214f329f0679ba7dda27bc087f0e75fa0ea52503854deaa1ce2040a322234f0694674cec334d79cb287dd5a544b080666b2c9dda7662bb0086a6fb4b289ac0d4d999177c063b6af37e76fc3df2aa497adc3a07f701d03507fb8e47691b8f48c380c0fd0c82368f0ebdef9909353a336fc7e97d0923c6bc9837b23e045dbfdb96530eddef1af796615bb393ecd9b2ba3fa0909ccad0f04f4c1f9a26709210de6d7d90b8c010cb358f9d54e418e97dfc65ca59f60130f7e89b7d7ebfdecfe1b75de8d8d3c3d42a4b22d6c018adb896ddfc74cdc1482d985dca28c20f9aa8f327751677b68460ee6913b6c420ffecbeb0d89762d45c8841913a95a61f354dc3b753c5231e12179b17806134caf69326c8e16b89430f6b1231642f32f38dc2f53e459283cc3f363c6e50473ee2c0efbbb1002df70daa462bd8c5e62563f0a3bc315881dc9964e5de5812661b7579bad7f373639a2b83bb0e170fef940059da1becbb069cdf19fb1effc0110414798c9daf5a1af950ba6d3d7df59f64e71b4d67316286257347210caf83df5b240e1bb4c3220b443f43e675b9c8e632eb0461cc8bc886cba0452138509d6b20fdc22220e3e9db8b118a40c74898b434f60e4ce1b1c49b591f1bf226d0ce9a486f0398e0cda42d4a9675501f0466e88d924e620797ad490a8206d029086034a8311dc4e176384401cee043237446b463861e7011d9b3ed49bb713ba68fc2d23f2dc35a2c144d8b7be802d6dec92f161147215b1284809864fd4a51456cd79f51ee8e4e45679cfb87dce210d8f45ea95b80948a75f1878094db2d8526ebd05986d92c0e17cd088d83df960d81ad2ba94ff79109bd4622963747303da462922ce527fdb4b14164256710064ebd0883b58ebbb7306eb3dd94129e961fd6a37c1b909080b96511196c76b188a3c4750114efcc792186c6019f6259b19d3ac9b16d0dbde31790f27f48f88d14e4d82b5955108288a7d3581941165d37ba1b2bc93653e9990d4e09fee370b141124db1e1a003feff92c49defcf650d6e93b69a59eb17ec6e38a883d3d1fad9b62480236d93f74a8f125b43f3a1e319b2f0e6a34128b88925acdc96387acc968c03f8be4eacf535d495f0bc706454426599089ebe0d7a8f55ce9700d7b993c45217ca717be4b947bdde028f0f99d25ae24a669ff8eb177ab9623de28d6f8635276ee359a1731e9773026dbb3d5b7bc7eabb0d3acde8971004c1cd00139bfa63b1efb68c9acef40d7969680b23ff816f19da5576870949ee4f9579631d03ef699a04565ff3b77c644fb593a8dbd905a6899203fac8847f3d717090dd38e839525d2aece71eaffaa5ad69478003afefda40c912fbe06a898e186235a3d2498ca5462d9f3a4be4c8e1c3556067c6ba7cbc9b2e35601c1994ddcde378c3e6625e4271e2f6070c1e974151af3c3e601c7274760506a7b04274032a827cfb8dd69ac9677e6c8d8617653a9c22c2516265a2af3c85e93e8254fd8774e2d42a753dab1588a524f2afd9b11e020b5dacd1a0dc1de71280185763dd24c5849d7329b83ba105d798a2417a3a9ce8133e16afd2f88b875deee1530b811b94e09de9e29466eec0f9ac2d54643aa246ecc7d7fc9863d1b4266d42bda22e0c56ca9df6435d3b22cad609dad39f10b9e97d0fe4ede23995d5504333fa189a272281653fc00132fc439ab8e10e2cf46c5dda63e90380d07b789d4f51460a03774094fec42f14e8d6cc84fc48fa7888940ba7649046e2239dc2d3ea71e783e28ce5e2ee37ac9a3fdcacc66bd763ad0ebb6a83697454210f4837b6d2706ce717da57aa3d81a605d7fca99808b481dec2cca621891be76d5db4d3d7c00b2bda739e3bdd2a13d5e2af4ce8adcb47907257a7b5e56bfe34dda36dc6008f81957f882404aebe83e6e43bb9aed5f705625ff9f67025a8879bc3d1e3e158545c16f2c06505a62420257c283f110b82e0a75fe874768595f269a9b638bab481006649d007329a62c05a794cac673d00414b189354c22057365768a71c6f15ec307be9a7fb3cc62aa57d61888df14ac1799f1af180d19fd29107d51dd04059f8c6133dd6ba21fe88dca0fa95060eee18fb5d87069515eb12d97f658b92542632eb8250b85fe3b8b43791168ad3e83b0c403f4c405ac70c8d6f4d8efc37a5191524afe5c6abeda6ddb7cdc9f809f793a5ad87717454cf3d6f98ad54bfcb3872f5c369c5a676fecdd754b5aab995b5f170c5bdfe6e08481a7e8e9872c2404d3a97b7fbf3370fafb8914360d04eda18d3d542c25fbbcabd7cb711c2a4dddcefac4440e9d166364d58fcd828eb7dc7d84b28ff3b9969335e700963c25c2d1b5d800c249e8449b4e5cef1191776df17a5bc2343842b5334378b7f7cf44e8a2593598b61c5f52269b4801bf99d35c96af86c8fcb6c21ba2c2a9c25731e945ae8ccde5e0e700c82b5e4846f54a68f335ec45e9713e6e933b76c1a040555d00edb4a10ca9a7d2db132055adc5b8f8e921390c2e3133455dbcc1a155cf1cd0056e29c4261e92ed077dfef42819'
    res=subprocess.run(["node", "1.js"]+[str(res.text)], capture_output=True, text=True,encoding='utf-8')
    print(res.stdout)



if __name__ == "__main__":
    headers = {
        # "Accept": "application/json, text/plain, */*",
        # "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
        # "Cache-Control": "no-cache",
        # "Connection": "keep-alive",
        # "Pragma": "no-cache",
        # "Referer": "https://jzsc.mohurd.gov.cn/data/project",
        # "Sec-Fetch-Dest": "empty",
        # "Sec-Fetch-Mode": "cors",
        # "Sec-Fetch-Site": "same-origin",
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0",
        # "accessToken": "jkFXxgu9TcpocIyCKmJ+tfpxe/45B9dbWMUXhdY7vLV89w7zJjsDRxSDEjVf+bZDhpUUKvcMtoMqfGfwdLCb8g==",
        # "sec-ch-ua": "\"Not(A:Brand\";v=\"99\", \"Microsoft Edge\";v=\"133\", \"Chromium\";v=\"133\"",
        # "sec-ch-ua-mobile": "?0",
        # "sec-ch-ua-platform": "\"Windows\"",
        "timeout": "30000",
        "v": "231012"#---------------------------
    }
    url = "https://jzsc.mohurd.gov.cn/APi/webApi/dataservice/query/project/list"
    start()